package com.ims.core.doc.service.impl;

import java.util.List;
import com.ims.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ims.core.doc.mapper.TInNon1007Mapper;
import com.ims.core.doc.domain.TInNon1007;
import com.ims.core.doc.service.ITInNon1007Service;

/**
 * 通用机打发票1007Service业务层处理
 *
 * @author IMS
 * @date 2024-11-20
 */
@Service
public class TInNon1007ServiceImpl implements ITInNon1007Service
{
    @Autowired
    private TInNon1007Mapper tInNon1007Mapper;

    /**
     * 查询通用机打发票1007
     *
     * @param id 通用机打发票1007主键
     * @return 通用机打发票1007
     */
    @Override
    public TInNon1007 selectTInNon1007ById(Long id)
    {
        return tInNon1007Mapper.selectTInNon1007ById(id);
    }

    /**
     * 查询通用机打发票1007列表
     *
     * @param tInNon1007 通用机打发票1007
     * @return 通用机打发票1007
     */
    @Override
    public List<TInNon1007> selectTInNon1007List(TInNon1007 tInNon1007)
    {
        return tInNon1007Mapper.selectTInNon1007List(tInNon1007);
    }

    /**
     * 新增通用机打发票1007
     *
     * @param tInNon1007 通用机打发票1007
     * @return 结果
     */
    @Override
    public int insertTInNon1007(TInNon1007 tInNon1007)
    {
        tInNon1007.setCreateTime(DateUtils.getNowDate());
        return tInNon1007Mapper.insertTInNon1007(tInNon1007);
    }

    /**
     * 修改通用机打发票1007
     *
     * @param tInNon1007 通用机打发票1007
     * @return 结果
     */
    @Override
    public int updateTInNon1007(TInNon1007 tInNon1007)
    {
        tInNon1007.setUpdateTime(DateUtils.getNowDate());
        return tInNon1007Mapper.updateTInNon1007(tInNon1007);
    }

    /**
     * 批量删除通用机打发票1007
     *
     * @param ids 需要删除的通用机打发票1007主键
     * @return 结果
     */
    @Override
    public int deleteTInNon1007ByIds(Long[] ids)
    {
        return tInNon1007Mapper.deleteTInNon1007ByIds(ids);
    }

    /**
     * 删除通用机打发票1007信息
     *
     * @param id 通用机打发票1007主键
     * @return 结果
     */
    @Override
    public int deleteTInNon1007ById(Long id)
    {
        return tInNon1007Mapper.deleteTInNon1007ById(id);
    }
}
